#ifndef __TOOL_H__
#define __TOOL_H__

#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <signal.h>
#include <errno.h>
#include <ifaddrs.h>
#include "list.h"
#include "lock.h"
#include "wait.h"
#include "elog.h"
#include <unistd.h>
#include <pthread.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/prctl.h>
#include <syslog.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <error.h>
#include <net/route.h>
#include <time.h>
#include <sys/time.h>

#ifdef __cplusplus
extern "C"
{
#endif


int tool_ip_get(const char *pif_name, int af, char *pipaddr);
int tool_systime_set_if_over_60_second(int year, int month, int day, int hour, int minute, int second, int msecond);
int tool_common_interval();




#ifdef __cplusplus
}
#endif    
#endif
